<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\widgets\LinkPager;
use yii\helpers\Url;
Yii::$app->view->params['page']['page_title'] = '平台公告';

?>

            <!-- Blog Entries Column -->

<div class="countCenter aboutUs">

  <div class="mcCont mcgCont">
    <div class="content-wrap">
      <div class="countNavs left">
        <ul class="aboutUsNavs">
              <li class="current"><i class="iconfont icon-circle"></i><i class="iconfont icon-zhengque" ></i>平台公告</li>
              <?php foreach ($m as $key => $value): ?>
           <a href="about/<?php echo $value->id ?>"><li><i class="iconfont icon-circle"></i><i class="iconfont icon-zhengque"></i><?= Html::encode($value->title) ?></li></a>
         <!--  <a href="about/15"><li><i class="iconfont icon-circle"></i><i class="iconfont icon-zhengque"></i>联系我们</li></a>
         <a href="about/19"><li><i class="iconfont icon-circle"></i><i class="iconfont icon-zhengque"></i>企业文化</li></a>
         <a href="about/20"> <li><i class="iconfont icon-circle"></i><i class="iconfont icon-zhengque"></i>诚聘英才</li></a> -->
          <?php endforeach ?>       
        </ul>
      </div>
      <div class="right aboutCont">

      <div class="aboutTxt">
          <h1 class="tt">平台公告</a></h1>
         
         <?php
          if($models){
           foreach ($models as $key => $m) {
          ?>
          <ul class="announceLists">
          <li><a href="<?= Url::toRoute(['post/about/', 'id' => $m->id]);?>"> <?= Html::encode($m->title);?>
          <span class="time"> <?= $m->create_at;?></span></a>
          </li>
        <?php }?>   
          </ul>

      </div>
     <?php }?>



<style type="text/css">
  .pagination li{line-height:25px;margin-left: 1px;float:left;} 
  .pagination li a{color: #999;width:30px;display:block;text-align:center;border-radius: 2px;}
  .pagination .active a{color:#fff;z-index: 2;cursor: default;background-color:#337ab7;border-color: #337ab7;width:30px;height:24px; }
  .fa-angle-left{width:30px;height:24px;border: 2px solid #DDDDDD;text-align:center;line-height:24px;border-radius:5px;}
  .fa-angle-right{width:30px;height:24px;border: 2px solid #DDDDDD;text-align:center;line-height:24px;border-radius:5px;}
</style>
<span class="page right" style="line-height:25px"></span>
<?php
echo LinkPager::widget([
    'pagination' => $pages,
    'maxButtonCount' => 5,
    'options' => ['class' => 'pagination page right'], 
    'nextPageLabel' => '<span class="next inlineBlock"><i class="fa fa-angle-right"></i></span>', 
    'prevPageLabel' => '<span class="pre inlineBlock"><i class="fa fa-angle-left"></i></span>', 
]);
?> 
       </div>

    </div>
  </div>


</div>





